import request from '@/utils/request'

// 查询合同签署流程设置列表
export function listSignProcess(query) {
  return request({
    url: '/ec/signProcess/list',
    method: 'get',
    params: query
  })
}

// 查询合同签署流程设置详细
export function getSignProcess(id) {
  return request({
    url: '/ec/signProcess/' + id,
    method: 'get'
  })
}

// 新增合同签署流程设置
export function addSignProcess(data) {
  return request({
    url: '/ec/signProcess',
    method: 'post',
    data: data
  })
}

// 修改合同签署流程设置
export function updateSignProcess(data) {
  return request({
    url: '/ec/signProcess',
    method: 'put',
    data: data
  })
}

// 修改合同签署流程状态设置
export function updateSignProcessStatus(data) {
  return request({
    url: '/ec/signProcess/status',
    method: 'put',
    data: data
  })
}

// 删除合同签署流程设置
export function delSignProcess(id) {
  return request({
    url: '/ec/signProcess/' + id,
    method: 'delete'
  })
}
